<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tvransitionalv//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<title>苏宁</title>
		<script type="text/javascript">
			var controller = 'http://localhost/0423/suning/index.php/Index/Car';
			var root = 'http://localhost/0423/suning';
		</script>
		<link rel="stylesheet" href="http://localhost/0423/suning/Template/default/css/publicMenuforUser.css" />
		<link rel="stylesheet" href="http://localhost/0423/suning/Template/default/css/mycar.css" />
		<script type="text/javascript" src="http://localhost/0423/suning/Template/default/js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="http://localhost/0423/suning/Template/default/js/public.js"></script>
		<script type="text/javascript" src="http://localhost/0423/suning/Template/default/js/mycar.js"></script>

	</head>

	<body>

		<!-- 头部开始 -->
		<div id="head">
			<!-- 头部内容开始 -->
			<div class="header">
				<!-- 登陆条 -->
				<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<div class="loginbar">
					<div class="loginleft">
						<ul class="mobSN">
							<li>
								<a class="ph" href="http://localhost/0423/suning/Template/default/">手机苏宁 <em></em></a>
							</li>
							<div id="leftMob" class="leftMob">
								<div class="colose"></div>
								<div class="m_left">
									<span>扫一扫，下载易购客户端</span>
									<img src="http://localhost/0423/suning/Template/default/images/code.png" alt="" />
								</div>
								<div class="m_right">

									<li>
										<img src="http://localhost/0423/suning/Template/default/images/app-ebook.png" alt="" />
									</li>
									<li>
										<img src="http://localhost/0423/suning/Template/default/images/app-sn.png" alt="" />
									</li>
									<li>
										<img src="http://localhost/0423/suning/Template/default/images/app-pptv.png" alt="" />
									</li>
									<li>
										<img src="http://localhost/0423/suning/Template/default/images/app-suning.png" alt="" />
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">更多应用</a>
									</li>
								</div>
								<div class="m_bottom">
									<a href="http://localhost/0423/suning/Template/default/">
										<img src="http://localhost/0423/suning/Template/default/images/newreg.png" alt="" />
									</a>
								</div>

							</div>
						</ul>
						<ul class="alistnav">
							<li><a class="a_menu" href="http://localhost/0423/suning/Template/default/">网站导航 <em></em></a> <i class="new"></i>
							</li>
							<div class="navconts">
								<div class="colose"></div>
								<ul class="ul_first">
									<li class="fisrt_tit">特色购物</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁互联</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁V购</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">礼品卡</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">海外购</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">企业频道</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">大聚惠</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">0元试用</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">视频购物</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">TV购</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">办公直通车</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">闪拍</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">预售</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">新发现</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">二手优品</a><i class="hot"></i>
									</li>
								</ul>
								<ul>
									<li class="fisrt_tit">主题频道</li>
									<li><a href="http://localhost/0423/suning/Template/default/">电器城</a><i class="hot"></i>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁超市</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">手机</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">运动馆</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">图书</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁置业</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">红孩子母婴</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">缤购美妆</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">电脑</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">服装城</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">品牌街</a>
									</li>
								</ul>
								<ul>
									<li class="fisrt_tit">生活助手</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">零钱宝</a><i class="hot"></i>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">手机充值</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">火车票</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">转账还款</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁帮客</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">水电煤</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">保险</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">彩票</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">机票</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">酒店团购</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">门店查询</a>
									</li>

								</ul>
								<ul>
									<li class="fisrt_tit">会员服务</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">会员联盟</a><i class="hot"></i>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁社区</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">延长保修</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">电子书</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">易付宝</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁理财</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">金融超市</a><i class="new"></i>
									</li>

								</ul>
								<ul>
									<li class="fisrt_tit">更多热点</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">满座网</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">PPTV</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">客户端</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">商家入驻</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁云</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁众包</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁联盟</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">用户体验</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">应用商店</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">公益频道</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">校园代理</a><i class="new"></i>
									</li>

								</ul>
							</div>
						</ul>
					</div>
					<div class="loginright">
						<ul class="aorder">
							<li><a href="http://localhost/0423/suning/Template/default/">我的订单<em></em></a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">待支付</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">待收货</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">待评价</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">修改订单</a>
							</li>

						</ul>

						<ul class="abuy">
							<li><a href="http://localhost/0423/suning/Template/default/">我的易购<em></em></a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">我的消息</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">我的零钱宝</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">我的收藏</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">我的优惠券</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">我的云钻</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">会员联盟</a>
							</li>
						</ul>
						<ul>
							<li><a href="http://localhost/0423/suning/Template/default/">易付宝</a>
							</li>
						</ul>
						<ul class="aser">
							<li><a href="http://localhost/0423/suning/Template/default/">服务中心<em></em></a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">帮助中心</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">查找门店</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">退换修</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">维修保养</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">投诉</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">建议反馈</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">在线客服</a>
							</li>
						</ul>
						    <?php if(!isset($_SESSION['username'])){ ?>
 						<ul>
							<li><a href="<?php echo U('Index/user/login');?>">登录</a>
							</li>
						</ul>
						<ul>
							<li><a href="<?php echo U('Index/user/reg');?>">注册</a>
							</li>
						</ul>
						<ul>
							<li><a href="">购物车</a>
							</li>
						</ul>
						<?php } ?>
						    <?php if(isset($_SESSION['username'])){ ?>
						<ul>
							<li><a href="<?php echo U('index/member/index/');?>"><?php echo $_SESSION['username'];?></a>
							</li>
						</ul>
						<ul>
							<li><a href="<?php echo U('Index/user/loginOut');?>">注销</a>
							</li>
						</ul>
						<ul>
							<li><a href="">购物车</a>
							</li>
						</ul>
						<?php } ?>

					</div>
				</div>
				<!-- 登陆条结束 -->
				<div class="banner">
					<div class="logo">
						<a href="http://localhost/0423/suning/">
							<img src="http://localhost/0423/suning/Template/default/images/suning.png" height="60" width="190" alt="">
						</a>
					</div>
					<div class="step">
						<div class="steplist">
							<li class="stepNum">1</li>
							<li class="stepWord">我的购物车</li>
						</div>
						<div class="stepDefaultBg">
							<li class="stepNum">2</li>
							<li class="stepWord">确认订单</li>
						</div>
						<div class="stepDefaultBg">
							<li class="stepNum">3</li>
							<li class="stepWord">付款</li>
						</div>
						<div class="stepDefaultBg">
							<li class="stepNum">4</li>
							<li class="stepWord">支付成功</li>
						</div>
					</div>

				</div>

				<div class="clear"></div>
				<!--购物车空-->
				<div id="cloudCartEmpty" style="">

					<div class="emptyCart">
						<dl>
							<dt></dt>
							<dd>
								<span id="hasLogonTip" style=""><h4><p>您的购物车还是空的，请选择商品后，来此结算。 </p></h4></span>
								<?php if(empty($_SESSION[ 'uid'])){ ?>
								<h4 id="unLogonTip">
								<p>您的购物车还是空的，<a name="cart1_blank_login" href="http://localhost/0423/suning/index.php/index/user/login/">马上登录</a>可展示您之前加入购物车的商品</p>
								</h4>
								<?php }?>
								<!--add by juyun start 促销链接  -->
								<span>
									<p class="yk_emptyCart_otherLink">									
									<a href="http://localhost/0423/suning" title="马上去首页">马上去首页</a>
									<a href="http://localhost/0423/suning/index.php/index/member/" title="查看收藏夹">查看收藏夹</a>
									</p>
									</span>
								<!--add by juyun end 促销链接  -->
							</dd>
						</dl>
					</div>
					<div id="OrderCheckOut" style="display:none;">
						<input name="storeId" value="10052" type="hidden">
						<input name="catalogId" value="10051" type="hidden">
					</div>
				</div>
				<!--购物车空-->
				<div id="carMain">
					<dvi class="w990">
						<li class="words shopCarWord fleft"><span class="shopCar"></span>购物车 </li>
						<li class=" words fright"></li>
					</dvi>

					<dvi class="w990">
						<li class=" words fleft wordBorder">运费说明：苏宁自营商品满69元免运费；商家商品运费按商家规则计算 </li>
						<li class=" words fright">
							<a class="gobackgShopping" href="http://localhost/0423/suning/">
								<返回继续购物 </a>
						</li>
					</dvi>
					<dvi class="carList">
						<div class="carListTitle">
							<li class="chose">
								<input type="checkbox" class="checkAll" />全选</li>
							<li class="imgT"> </li>
							<li class="googs">商品信息</li>
							<li class="price">单价</li>
							<!-- <li class="sendTo">送货至</li> -->
							<li class="city">天津市</li>
							<li class="nums">数量</li>
							<li class="subtotal">小计(元)</li>
							<li class="doIt">操作</li>
						</div>
						<!-- 单条商品信息 -->
						<?php foreach ($cartGoods['goods'] as $k=>$v){?>
							<div class="contentset">
								<li class="chose">
									<input type="checkbox" class="goodsCheacked" goodsKey="<?php echo $k;?>" />
									<li class="img">
										<img src="<?php echo $v['imgUrl'];?>" alt="" /><i class="light"></i>
									</li>
								</li>
								<li class="googsTitle"><a href="<?php echo U('index/content/index/gid/');?><?php echo $v['id'];?>"><?php echo $v['name'];?><?php if($v['color'] != 'null'){ ?>-<?php echo $v['color'];?><?php } ?><?php if($v['size'] != 'null'){ ?>-<?php echo $v['size'];?><?php } ?></a>
								</li>
								<li class="price"> ¥<span class=""><?php echo $v['price'];?></span>
								</li>
								<!-- <li class="sendTo">现货</li> -->
								<li class="city">现货</li>
								<li class="nums">
									<a href="javascript:;" class="minus">-</a>
									<input class="inputwidth goosNumValue" type="text" value="<?php echo $v['num'];?>" width="50" />
									<a class="plus" href="javascript:;">+</a>
								</li>
								<li class="subtotal">¥<span class="totalpay"><?php echo $v['total'];?></span>
								</li>
								<li class="doIt">

									<span><a href="javascript:;" class="collect" gid = "<?php echo $v['id'];?>">移入收藏夹</a></span>
									<span><a href="javascript:;" key="<?php echo $k;?>" class="del">删除</a></span>
									<table class="ui-poptip-main">
										<tbody>
											<tr>
												<td>
													<p class="ui-poptip-tit">确定要删除该商品吗？</p>
												</td>
											</tr>
											<tr>
												<th> <a href="javascript:;" class="ui-tip-b01 mr10 sure">确认</a> <a href="javascript:;" class="ui-tip-b01 quit">取消</a> </th>
											</tr>
										</tbody>
									</table>

								</li>
							</div>
						<?php }?>
						<!-- 单条商品信息 结束 -->
						<input type="hidden" class="uid" value="<?php echo $_SESSION['uid']; ?>" />

					</dvi>
					<div class="shopList">
						<div class="listLfet">
							<li class="left">
								<input type="checkbox" class="checkAll" />全选 </li>
							<li class="chooseclear">
								<a class="gobackgShopping chooseclearA" href="javascript:;">删除选中商品 </a>
								<table class="ui-poptip-main">
									<tbody>
										<tr>
											<td>
												<p class="ui-poptip-tit">确定要清空购物车吗？</p>
											</td>
										</tr>
										<tr>
											<th> <a href="javascript:;" class="ui-tip-b01 mr10 sure">确认</a> <a href="javascript:;" class="ui-tip-b01 quit">取消</a> </th>
										</tr>
									</tbody>
								</table>
							</li>
							<li class="clearcar">
								<a class="gobackgShopping clearcarA" href="javascript:;">清空购物车</a>
								<table class="ui-poptip-main">
									<tbody>
										<tr>
											<td>
												<p class="ui-poptip-tit">确定要清空购物车吗？</p>
											</td>
										</tr>
										<tr>
											<th> <a href="javascript:;" class="ui-tip-b01 mr10 sure">确认</a> <a href="javascript:;" class="ui-tip-b01 quit">取消</a> </th>
										</tr>
									</tbody>
								</table>
							</li>
						</div>
						<div class="listRight">
							<li class="">商品总金额： </li>
							<li class="price">¥<span class="topay"><?php echo $cartGoods['total'];?></span> </li>
							<li class="">运费(以结算页为准)： </li>
							<li class="price">

								<?php if($cartGoods[ 'total']>69){ echo "¥<span class='postage'>0.00</span>"; }else if($cartGoods['total']
								<69){ echo "¥<span class='postage'>10.00</span>"; } ?>

							</li>
						</div>

						<div class="settle">

							<li class="">已选商品<span class="Npages"><?php echo $cartGoods['total_rows'];?></span>件 </li>
							<li class="payable">商品应付金额： </li>
							<li class="price">¥
								<span class="payfor">

				<?php 

				if($cartGoods['total'] >69){ 

					echo $cartGoods['total'];

				}else if($cartGoods['total'] <69){

					echo $cartGoods['total'] + 10;

				}
				?>

			</span>
							</li>
							<li class="sendgoods">
								<input type="button" class="account" />
								<span class="loading"></span>
								<span class="success"></span>
								<div class="nogoodschoose">请至少选中一件商品再去结算</div>
							</li>

						</div>
					</div>
				</div>
				<!--处理请求提示-->
				<div id="alert">
					<div class="alertBg">
						<li>
							<div class="loading"></div>
							<div class="success"></div>
						</li>
						<li class="alertWords">处理中...</li>
					</div>
				</div>
				<div id="ok">
					<div class="okBg">
						<li>
							<div class="success"></div>
						</li>
						<li class="alertWords">处理完成</li>
					</div>
				</div>
				<!--处理请求提示-->
				<div class="clear"></div>
				<!--尾部-->
				<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
		<div class="footer words">
			<li>Copyright© 2002-2015 ，苏宁版权所有 苏ICP备10207551号 苏B1-20130131 苏B2-20130376 出版物经营许可证新出发苏批字第A-243号</li>
			<li>
				<a href="http://localhost/0423/suning/Template/default/"><img src="http://localhost/0423/suning/Template/default/images/kexin.png" alt=""></a>
				<a href="http://localhost/0423/suning/Template/default/"><img src="http://localhost/0423/suning/Template/default/images/chengxin.png" alt=""></a>
				<a href="http://localhost/0423/suning/Template/default/"><img src="http://localhost/0423/suning/Template/default/images/unicom.png" alt=""></a>
				<a href="http://localhost/0423/suning/Template/default/"><img src="http://localhost/0423/suning/Template/default/images/dianxin.jpg" alt=""></a>
				<a href="http://localhost/0423/suning/Template/default/"><img src="http://localhost/0423/suning/Template/default/images/dianzi.png" alt=""></a>
			</li>
		</div>
				<!--尾部-->

	</body>

</html>